using UnityEngine;

public class FeatureManager : MonoBehaviour
{
	public static FeatureManager instance;

	public bool debugMode;

	private void Awake()
	{
		instance = this;
	}

	public void Start()
	{
		AbstractFeature[] componentsInChildren = GetComponentsInChildren<AbstractFeature>(includeInactive: false);
		AbstractFeature[] array = componentsInChildren;
		foreach (AbstractFeature abstractFeature in array)
		{
			if (abstractFeature.state == AbstractFeature.State.Validated)
			{
				abstractFeature.ForceApplyTesting();
			}
		}
		AbstractFeature[] array2 = componentsInChildren;
		foreach (AbstractFeature abstractFeature2 in array2)
		{
			if (abstractFeature2.state == AbstractFeature.State.Testing)
			{
				abstractFeature2.ApplyTesting();
			}
		}
	}
}
